package com.itheima.reggie;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.util.DigestUtils;

@Slf4j
@SpringBootApplication
@MapperScan("com.itheima.reggie.mapper")
@ServletComponentScan("com.itheima.reggie.filter")
@EnableTransactionManagement
public class ReggieApplication {
    public static void main(String[] args) {
        IdWorker.initSequence(1,1);
        SpringApplication.run(ReggieApplication.class,args);
        String s = DigestUtils.md5DigestAsHex("123456".getBytes());
        System.out.println(s);

        log.info("项目启动成功啦。。。");
    }


}
